
const app = require("./app")
const http = require('http')
const server = http.createServer(app)
const root = require("./router/root")


app.use("/", root)

const port = 8001
server.listen(port, () => {
    console.log(`server running on port ${port}`)
})